#include<iostream>
#include<string>

#include<regex>

int main()
{
    std::string s="numbers/1234/asd/1111";
    std::regex e("numbers/(\\d+)");
    std::smatch matches;
    bool flag=std::regex_match(s,matches,e);
    if(!flag)
    {
        std::cout<<"匹配错误"<<std::endl;
    }
    for(auto &h:matches)
    {
        std::cout<<h<<std::endl;
    }

    return 0;
}

